šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

postcss-pseudoelements

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-pseudoelements

PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)

2.2.0
Source
npm
Version published
Weekly downloads
141K
7.45%
Maintainers
1
Weekly downloads
Ā 
Created
Source

postcss-pseudoelements

usage

var pe = require('postcss-pseudoelements');
var postcss = require('postcss');

var processor = postcss(pe(OPTIONS));

console.log(processor.process('a:before {}').css) // outputs: a:before {}
console.log(processor.process('a::before {}').css) // outputs: a:before {}

options

selectors: Array of pseudo-element selectors to rewrite with single and double colons. Note that these values will be used in a regexp without escaping. Defaults to ['before','after','first-letter','first-line']

Keywords

postcss

FAQs

Package last updated on 24 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts